package de.thw.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import de.thw.web.factory.SetupFactory;
import de.thw.web.factory.ViewFactory;
import de.thw.web.object.Page;

@Controller
@RequestMapping("/setup")
public class SetupController extends AbstractController {

	@RequestMapping({"/",""})
	public ModelAndView start(HttpServletRequest request,
			HttpServletResponse response) throws Exception {

		int step = 1;

		Page page = SetupFactory.getPage(step);

		ModelAndView modelView = ViewFactory.getDefaultModelView(page);
		
		return modelView;
	};
};